<?php
/**
 * 功能描述：	系统用户登录
 * @datetime	2020-09-10
 * @version   	v1.0
 * @author   	ZHL
 * @copyrigh  	2020 ZHL 版权所有
 */

class Web_LoginModel extends Model {

    /**
     * Notes:账号/手机/邮箱 登录 验证用户信息
     * User: ZhuHaili
     * Date: 2020/9/12
     */
    function getUserInfoOther($userName, $pwd){
        $sql['field'] = '*';
        $sql['table'] = 'member';
        $sql['where']['title'] = $userName;
        $sql['where']['pwd'] = $pwd;
        //$pwd = $this->sqlStr($pwd);
        //$userName = $this->sqlStr($userName);
        //$sql['where'] =  "and pwd=$pwd and (nickname=$userName or mcode=$userName or mobile=$userName or email=$userName)";
        return $this->conn('mysql')->find($sql);
    }
    
}